package com.zw.product.comfig;/*
 *@program:b2c-cloud-store
 *@author:
 *@Time: 2022/11/24  19:31
 *@description: 商品服务，缓存配置类,通过继承父模板复用
 */

import com.zw.config.CacheConfiguration;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ProductConfiguration extends CacheConfiguration {


    /**
     * mq序列化方式，选择json
     * @return
     */
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }

}
